<?php
namespace app\index\model;

use think\Model;

class CategoryModel extends Model
{
    protected $table = 'sf_category';
    public function get_category_list(){
        return $this->order('sort')->select();
    }
    public function getLogoAttr($data){
        return str_replace(DS,'/',$data);
    }
}
